import request from '@/utils/request'

/**
 * 发送短信验证码
 * @param {Object} data
 */
export function sendSmsApi(data) {
  return request({
    url: '/anony/sms/getCode',
    method: 'post',
    data
  })
}


/**
 * 验证短信码是否正确
 * @param {Object} data
 */
export function validateRegisterApi(data){
  return request({
    url: '/anony/sms/validate/code',
    method: 'post',
    data
  })
}
